package k3_IO.p1_file.demo02;

public class NumsSum {

    public int getSum(int n){
        if(n==1){
            return 1;
        }
        return n+getSum(n-1);
    }

    public static void main(String[] args) {
        NumsSum sum = new NumsSum();
        System.out.println(sum.getSum(100));
    }
}
